<template>
  <type-nav />
  <list-container />
  <recommend />
  <rank />
  <like />
  <floor v-for="item in floor" :key="item.id" :floor="item" />
  <brand />
</template>

<script>
// @ is an alias to /src
import { defineComponent, onMounted, computed } from "vue";
import { useInstance } from "@/utils";
import { REQMOCKFLOOR } from "@/store/types";
export default defineComponent({
  name: "Home",
  setup() {
    const { $store } = useInstance();
    onMounted($store.dispatch.call(null, REQMOCKFLOOR));
    return {
      floor: computed(() => $store.state.home.floorList)
    }
  }
});
</script>
